const pageConfig = {
    template: {
        // 页面基础配置
        basicConfig: {
            title: '出差申请' // 模块标题
        },
        // 页面表单元素分组
        groupList: [{
            groupKey: 'mainInfo',
            groupTxt: '主信息',
            isShow: true
        },
        {
            groupKey: 'journeyInfo',
            groupTxt: '行程信息',
            isShow: true
        }
        ],
        // 页面元素配置
        pageItemConfig: [{
            label: '标题', // 标题
            key: 'key', // 键值/字段
            type: 'input', // 元素类型
            value: '', // 默认值
            mode: '', // type为checkbox/checkboxMultiple类型的按钮样式
            items: [], // 默认下拉内容
            isShow: true, // 是否显示
            required: true, // 是否必填
            readOnly: false, // 是否只读
            group: 'mainInfo' // 分组，对应groupList的groupKey值
        },
        {
            label: '申请人',
            key: 'name',
            type: 'input',
            value: '',
            isShow: true,
            required: true,
            readOnly: false,
            group: 'mainInfo'
        },
        {
            label: '申请组织',
            key: 'pallet',
            type: 'input',
            value: '',
            isShow: true,
            required: true,
            readOnly: false,
            group: 'mainInfo'
        },
        {
            label: '申请部门',
            key: 'locationId',
            type: 'inputSelect',
            value: '',
            items: [{
                text: 'val1',
                value: '1'
            }, {
                text: 'val2',
                value: '2'
            }],
            isShow: true,
            required: true,
            readOnly: false,
            group: 'journeyInfo'
        },
        {
            label: '出差地点',
            key: 'receiptOrderId',
            type: 'jointSelect',
            value: '',
            isShow: true,
            required: true,
            readOnly: false,
            items: [{
                text: '安徽',
                value: '1-0',
                children: [{
                    text: '合肥市',
                    value: '1-1'
                },
                {
                    text: '安庆',
                    value: '1-2'
                }
                ]
            },
            {
                text: '北京市',
                value: '2-0',
                children: [
                    // {
                    //                text: '2.1班',
                    //                value: '2-1'
                    //            },
                    //            {
                    //                text: '2.2班',
                    //                value: '2-2'
                    //            },
                ]
            },
            {
                text: '上海市',
                value: '3-0',
                disable: false
            }
            ],
            group: 'journeyInfo'
        },
        {
            label: '联系电话',
            key: 'receiptOrderItemId',
            type: 'input',
            value: '',
            isShow: true,
            required: true,
            readOnly: false,
            group: 'mainInfo'
        },
        {
            label: '开始日期',
            key: 'receivedPkgQuantity',
            type: 'datetime',
            value: '',
            isShow: true,
            required: true,
            readOnly: false,
            group: 'mainInfo'
        },
        {
            label: '结束日期',
            key: 'time',
            type: 'datetime',
            value: '',
            isShow: true,
            required: true,
            readOnly: false,
            group: 'mainInfo'
        }
        ]
    },
    evectionApply: {
        // 页面基础配置
        basicConfig: {
            title: '出差申请'
        },
        // 页面表单元素分组
        groupList: [{
            groupKey: 'mainInfo',
            groupTxt: '主信息',
            isShow: true
        },
        {
            groupKey: 'journeyInfo',
            groupTxt: '行程信息',
            isShow: true
        }
        ],
        // 页面元素配置
        pageItemConfig: [{
            label: '申请人',
            key: 'name',
            type: 'input',
            value: '',
            isShow: true,
            required: true,
            readOnly: false,
            group: 'mainInfo'
        },
        {
            label: '申请组织',
            key: 'pallet',
            type: 'input',
            value: '',
            isShow: true,
            required: true,
            readOnly: false,
            group: 'mainInfo'
        },
        {
            label: '申请部门',
            key: 'locationId',
            type: 'inputSelect',
            value: '',
            items: [{
                text: 'val1',
                value: '1'
            }, {
                text: 'val2',
                value: '2'
            }],
            isShow: true,
            required: true,
            readOnly: false,
            group: 'journeyInfo'
        },
        {
            label: '出差地点',
            key: 'receiptOrderId',
            type: 'jointSelect',
            value: '',
            isShow: true,
            required: true,
            readOnly: false,
            items: [{
                text: '安徽',
                value: '1-0',
                children: [{
                    text: '合肥市',
                    value: '1-1'
                },
                {
                    text: '安庆',
                    value: '1-2'
                }
                ]
            },
            {
                text: '北京市',
                value: '2-0',
                children: [
                    // {
                    //                text: '2.1班',
                    //                value: '2-1'
                    //            },
                    //            {
                    //                text: '2.2班',
                    //                value: '2-2'
                    //            },
                ]
            },
            {
                text: '上海市',
                value: '3-0',
                disable: false
            }
            ],
            group: 'journeyInfo'
        },
        {
            label: '联系电话',
            key: 'receiptOrderItemId',
            type: 'input',
            value: '',
            isShow: true,
            required: true,
            readOnly: false,
            group: 'mainInfo'
        },
        {
            label: '开始日期',
            key: 'receivedPkgQuantity',
            type: 'datetime',
            value: '',
            isShow: true,
            required: true,
            readOnly: false,
            group: 'mainInfo'
        },
        {
            label: '结束日期',
            key: 'time',
            type: 'datetime',
            value: '',
            isShow: true,
            required: true,
            readOnly: false,
            group: 'mainInfo'
        }
        ]
    },
    sellContractEntry: {
        // 页面基础配置
        basicConfig: {
            title: '销售合同录入'
        },
        // 页面表单元素分组
        groupList: [{
            groupKey: 'baseInfo',
            groupTxt: '基础信息',
            isShow: true
        },
        {
            groupKey: 'financeInfo',
            groupTxt: '财务信息',
            isShow: true
        },
        {
            groupKey: 'templateInfo',
            groupTxt: '模板信息',
            isShow: false
        }
        ],
        pageItemConfig: [{
            label: '合同分类',
            key: 'type',
            type: 'select',
            value: '',
            items: [{
                text: '光伏材料销售合同',
                value: '1'
            },
            {
                text: '逆变器销售合同',
                value: '2'
            },
            {
                text: '组件销售合同',
                value: '3'
            },
            ],
            isShow: true,
            required: true,
            readOnly: false,
            group: 'baseInfo'
        },
        {
            label: '合同类型',
            key: 'saleType',
            type: 'select',
            value: '',
            isShow: true,
            items: [{
                text: '普通合同',
                value: '1'
            },
            {
                text: '金额合同',
                value: '2'
            },
            {
                text: '物料分组合同',
                value: '3'
            },
            {
                text: '框架合同',
                value: '4'
            },
            ],
            required: true,
            readOnly: false,
            group: 'baseInfo'
        },
        {
            label: '合同模板',
            key: 'contractTempId',
            type: 'select',
            value: '',
            items: [],
            isShow: false,
            required: true,
            readOnly: false,
            group: 'baseInfo'
        },
        {
            label: '合同名称',
            key: 'contractName',
            type: 'input',
            value: '',
            items: [],
            isShow: true,
            required: true,
            readOnly: false,
            group: 'baseInfo'
        },
        {
            label: '合同编号',
            key: 'contractNumber',
            type: 'input',
            value: '',
            items: [],
            isShow: true,
            required: true,
            readOnly: false,
            group: 'baseInfo'
        },
        {
            label: '客户名称',
            key: 'customerName',
            type: 'inputSelect',
            value: '',
            items: [],
            isShow: true,
            required: true,
            readOnly: false,
            group: 'baseInfo'
        },
        {
            label: '签订日期',
            key: 'signTime',
            type: 'date',
            value: '',
            items: [],
            isShow: true,
            required: true,
            readOnly: false,
            group: 'baseInfo'
        },
        {
            label: '销售部门',
            key: 'saleDeptId',
            type: 'select',
            value: '',
            items: [],
            isShow: true,
            required: true,
            readOnly: false,
            group: 'baseInfo'
        },
        {
            label: '销售人员',
            key: 'saleUserId',
            type: 'inputSelect',
            value: '',
            items: [],
            isShow: true,
            required: true,
            readOnly: false,
            group: 'baseInfo'
        },
        {
            label: '项目',
            key: 'projectId',
            type: 'select',
            value: '',
            items: [],
            isShow: true,
            required: true,
            readOnly: false,
            group: 'baseInfo'
        },
        {
            label: '关联收款账户',
            key: 'collectingAccountId',
            type: 'select',
            value: '',
            items: [],
            isShow: true,
            required: true,
            readOnly: false,
            group: 'financeInfo'
        },
        {
            label: '账户名',
            key: 'collectingAccountName',
            type: 'input',
            value: '',
            items: [],
            isShow: true,
            required: true,
            readOnly: false,
            group: 'financeInfo'
        },
        {
            label: '开户行',
            key: 'openingBankName',
            type: 'input',
            value: '',
            items: [],
            isShow: true,
            required: true,
            readOnly: false,
            group: 'financeInfo'
        },
        {
            label: '法定/授权代表人',
            key: 'legalPerson',
            type: 'input',
            value: '',
            items: [],
            isShow: true,
            required: true,
            readOnly: false,
            group: 'financeInfo'
        },
        {
            label: '发(提)货日期',
            key: 'deliveryDate',
            type: 'date',
            value: '',
            items: [],
            isShow: true,
            required: true,
            readOnly: false,
            group: 'financeInfo'
        },
        {
            label: '签约地点',
            key: 'signAddress',
            type: 'input',
            value: '',
            items: [],
            isShow: true,
            required: true,
            readOnly: false,
            group: 'financeInfo'
        },
        {
            label: '补充条款',
            key: 'supplementaryClauses',
            type: 'input',
            value: '',
            items: [],
            isShow: true,
            required: true,
            readOnly: false,
            group: 'financeInfo'
        },
        {
            label: '票据类型',
            key: 'billType',
            type: 'select',
            value: '',
            items: [{
                text: '专票',
                value: '1'
            }, {
                text: '普票',
                value: '2'
            }],
            isShow: true,
            required: true,
            readOnly: false,
            group: 'financeInfo'
        },
        {
            label: '是否含税',
            key: 'isIncludeTax',
            type: 'checkbox',
            value: 'true',
            mode: 'button',
            items: [{
                text: '是',
                value: '1',
            }, {
                text: '否',
                value: '2'
            }],
            isShow: true,
            required: true,
            readOnly: false,
            group: 'financeInfo'
        },
        {
            label: '是否价外税',
            key: 'isExtraPriceTax',
            type: 'checkbox',
            value: '',
            mode: 'button',
            items: [{
                text: '是',
                value: '1',
            }, {
                text: '否',
                value: '2'
            }],
            isShow: true,
            required: true,
            readOnly: false,
            group: 'financeInfo'
        },
        ]
    },
    // 销售合同明细
    sellContractEntryDetail: {
        // 页面基础配置
        basicConfig: {
            title: '合同录入明细'
        },
        // 页面表单元素分组
        groupList: [{
            groupKey: 'detailInfo',
            groupTxt: '明细信息',
            isShow: true
        }],
        // 页面元素配置
        pageItemConfig: [
            {
			    label: '物料编码',
			    key: 'materialCode',
			    type: 'input',
			    value: '',
			    mode: '', // type为checkbox/checkboxMultiple类型的按钮样式
			    items: [],
			    isShow: false,
			    required: true,
			    readOnly: false,
			    group: 'detailInfo'
            },
            {
                label: '物料编码',
                key: 'materialId',
                type: 'inputSelect',
                value: '',
                mode: '', // type为checkbox/checkboxMultiple类型的按钮样式
                items: [],
                isShow: true,
                required: true,
                readOnly: false,
                group: 'detailInfo'
            },
            {
                label: '物料名称',
                key: 'materialName',
                type: 'input',
                value: '',
                mode: '', // type为checkbox/checkboxMultiple类型的按钮样式
                items: [],
                isShow: true,
                required: true,
                readOnly: true,
                group: 'detailInfo'
            },
            {
                label: '规格型号',
                key: 'model',
                type: 'input', // 元素类型
                value: '',
                mode: '', // type为checkbox/checkboxMultiple类型的按钮样式
                items: [], // 默认下拉内容
                isShow: true, // 是否显示
                required: false, // 是否必填
                readOnly: true, // 是否只读
                group: 'detailInfo' // 分组，对应groupList的groupKey值
            },
            {
                label: '销售单位',
                key: 'purchaseUnit',
                type: 'input', // 元素类型
                value: '',
                mode: '', // type为checkbox/checkboxMultiple类型的按钮样式
                items: [], // 默认下拉内容
                isShow: true, // 是否显示
                required: true, // 是否必填
                readOnly: false, // 是否只读
                group: 'detailInfo' // 分组，对应groupList的groupKey值
            },
            {
                label: '销售数量',
                key: 'number',
                type: 'numberInput', // 元素类型
                value: '',
                mode: '', // type为checkbox/checkboxMultiple类型的按钮样式
                items: [], // 默认下拉内容
                isShow: true, // 是否显示
                required: true, // 是否必填
                readOnly: false, // 是否只读
                group: 'detailInfo' // 分组，对应groupList的groupKey值
            },
            {
                label: '含税单价',
                key: 'detailTaxPrice',
                type: 'input', // 元素类型
                value: '',
                mode: '', // type为checkbox/checkboxMultiple类型的按钮样式
                items: [], // 默认下拉内容
                isShow: true, // 是否显示
                required: true, // 是否必填
                readOnly: false, // 是否只读
                group: 'detailInfo' // 分组，对应groupList的groupKey值
            },
            {
                label: '价税合计',
                key: 'detailTotalTaxPrice',
                type: 'input', // 元素类型
                value: '', // 默认值
                mode: '', // type为checkbox/checkboxMultiple类型的按钮样式
                items: [], // 默认下拉内容
                isShow: true, // 是否显示
                required: true, // 是否必填
                readOnly: false, // 是否只读
                group: 'detailInfo' // 分组，对应groupList的groupKey值
            },
        ]
    }
};